package com.song.JavaThread_day02.ch2_5;

public class TaskMain {
	
	
	public static void main(String[] args) {
		
		PrintQueue queue = new PrintQueue();
		
		Thread thread[] = new Thread[10];
		
		for(int i=0;i<10;i++)
		{
			thread[i] = new Thread(new Job(queue),"thread-"+i);
		}
		
		for(int i=0;i<10 ;i++)
		{
			thread[i].start();
		}
		
		
	}
}
